import Vue from "vue";
import Router from "vue-router";

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      redirect: "/login",
      component: () => import("../views/Main.vue"),
      children: [
        { path: "test", 
        component: () => import("../Test/Parent.vue")
        },
        
        {
          path: "home",
          name: "home",
          component: () => import("../views/Home/Home")
        },
        {
          path: "other1",
          name: "other1",
          component: () => import("../views/Other/Page1")
        },
        {
          path: "other2",
          name: "other2",
          component: () => import("../views/Other/Page2")
        },
        {
          path: "user",
          name: "user",
          component: () => import("../views/UserManage/UserManage")
        },
        {
          path: "vedio",
          name: "vedio",
          component: () => import("../views/VideoManage/VideoManage")
        },
      ]
     
    },{
      path: "/login",
      name:'login',
      component: () => import("../views/Login/Login.vue")
    }
    
  ],
});
